package cn.dxc.demo.service.impl;


import cn.dxc.demo.entity.HeadMenu;
import cn.dxc.demo.mapper.HeadMenuMapper;
import cn.dxc.demo.service.IHeadMenuService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class HeadMenuServiceImpl extends ServiceImpl<HeadMenuMapper, HeadMenu> implements IHeadMenuService {


    @Resource
    private HeadMenuMapper menuMapper;

    @Override
    public List<HeadMenu> getAllHeadMenu() {
        final List<HeadMenu> allHeadMenu = menuMapper.getAllHeadMenu();
        return allHeadMenu;
    }
}
